import request, { axios } from '@/utils/request'

export function listLogVote (parameter) {
  return axios({
    url: '/vote/logVote',
    method: 'post',
    data: parameter
  })
}

export function listAllVote (parameter) {
  return axios({
    url: '/vote/listAll',
    method: 'post',
    data: parameter
  })
}

export function listVote (parameter) {
  return axios({
    url: '/vote/ListVote',
    method: 'post',
    data: parameter
  })
}

export function addVote (parameter) {
  return axios({
    url: '/vote/addVote',
    method: 'post',
    data: parameter
  })
}

export function queryVoted (parameter) {
  return axios({
    url: '/vote/queryVoted',
    method: 'post',
    data: parameter
  })
}

export function queryVoteResult (parameter) {
  return axios({
    url: '/vote/queryVoteResult',
    method: 'post',
    data: parameter
  })
}

export function voteExcel (parameter) {
  return request({
    url: '/vote/download',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
